<template>
  <div>
    <div class="header">
      <i class="iconfont icon-icon_jiantou-zuo" @click="handleBack"></i>
      <slot></slot>
      <i class="iconfont icon-sousuo1" @click="handleJumpSearch"></i>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    handleBack() {
      this.$router.back()
    },
    handleJumpSearch() {
      // console.log("跳转影院搜索")
      this.$router.push('/cinemas/search')
    }
  },
}
</script>

<style lang="scss" scoped>
.header {
  width: 100vw;
  height: 44px;
  line-height: 44px;
  font-size: 17px;
  color: #191a1b;
  text-align: center;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  border-bottom: 1px solid #ececec;
  z-index: 999;

  .icon-icon_jiantou-zuo, .icon-sousuo1 {
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: 200;
    line-height: 30px;
    color: #656464;
    border-radius: 50%;
    text-align: center;
  }

  .icon-icon_jiantou-zuo{
    position: absolute;
    top: 5px;
    left: 5px;
  }

  .icon-sousuo1{
    position: absolute;
    top: 5px;
    right: 10px;
  }
}
</style>
